package top.heathylife.gateway.common.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author GaoZexi
 * @datetime 2020/3/30 10:42
 */
@Data
@Accessors(chain = true)
@TableName("gateway_api_account_config")
@ApiModel("凭证与接口配置")
public class GatewayApiAccountConfigPo implements Serializable {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    @ApiModelProperty("账号凭证")
    private String accountSecret;
    @ApiModelProperty("接口名称")
    private String apiName;
    @ApiModelProperty("接口价格")
    private Integer price;
    @ApiModelProperty("服务商简称")
    @TableField("锁定的接口版本")
    private String lockApiVersion;
    @TableField("env")
    private String env;
    @ApiModelProperty("aes加密key")
    private String aesKey;
    @ApiModelProperty("是否启用中 true->启用;false->禁用")
    private Boolean status;

}
